package com.aspire.nm.component.cmppserverDemo;

import java.io.IOException;

public class ShutDownHook extends Thread {

	private CmppServerWrapper cmppServerWrapper;
	
	public ShutDownHook(CmppServerWrapper cmppServerWrapper){
		this.cmppServerWrapper = cmppServerWrapper;
	}
	
	
	public void run(){
		try {
			cmppServerWrapper.stop();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
